;
var db = require("../../javascript/mysql")
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        planA: {
            "name": "交通工具意外险",
            "company": "和泰人寿",
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "passenger_death": "200000",
            "bus_death": "200000",
            "taxi_death": "200000",
            "train_death": "200000",
            "ship_death": "200000",
            "airplane_death": "2000000",
            "price": "30.00"

        },
        planB: {
            "name": "交通工具意外险",
            "company": "和泰人寿",
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "passenger_death": "500000",
            "bus_death": "300000",
            "taxi_death": "300000",
            "train_death": "300000",
            "ship_death": "300000",
            "airplane_death": "5000000",
            "price": "99.00"

        }
    }
    for( k in plan ){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close();
}
